package cn.wolfcode.rbac.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("employee")
public class Employee {
    @TableId(type=IdType.AUTO)
    private Long id;// 员工id
    private String name; // 员工名字
    private String password;// 密码
    private String email;// 邮箱
    private int age;// 年龄
    private boolean admin; // 是否是管理员
    private Long dept_id;
    @TableField(exist = false)
    private Department department; // 部门
}
